/**
 * 
 */
package com.worksmap.core.entity;

import java.io.Serializable;

/**
 * @author jack
 *
 */
public class Shop implements Serializable{
	
	private static final long serialVersionUID = -5333352501451347999L;
	/**
	 * 店铺编号。shop+sid.taobao.com即店铺地址，如shop123456.taobao.com
	 */
	private String sid;
	/**
	 * 店铺所属的类目编号
	 */
	private String cid;
	/**
	 * 卖家昵称
	 */
	private String nick;
	/**
	 * 店铺标题
	 */
	private String title;
	/**
	 * 店铺描述
	 */
	private String desc;
	/**
	 * 店铺公告
	 */
	private String bulletin;
	/**
	 * 店标地址。返回相对路径，可以用"http://logo.taobao.com/shop-logo"来拼接成绝对路径
	 */
	private String pic_path;
	/**
	 * 开店时间。格式：yyyy-MM-dd HH:mm:ss
	 */
	private String created;
	/**
	 * 最后修改时间。格式：yyyy-MM-dd HH:mm:ss
	 */
	private String modified;
	/**
	 * 店铺动态评分信息
	 */
	private ShopScore shop_score;
	
	@Override
	public String toString() {
		return "Shop [sid=" + sid + ", cid=" + cid + ", nick=" + nick
				+ ", title=" + title + ", desc=" + desc + ", bulletin="
				+ bulletin + ", pic_path=" + pic_path + ", created=" + created
				+ ", modified=" + modified + ", shop_score=" + shop_score + "]";
	}
	
	/**
	 * @return the sid
	 */
	public String getSid() {
		return sid;
	}
	/**
	 * @param sid the sid to set
	 */
	public void setSid(String sid) {
		this.sid = sid;
	}
	/**
	 * @return the cid
	 */
	public String getCid() {
		return cid;
	}
	/**
	 * @param cid the cid to set
	 */
	public void setCid(String cid) {
		this.cid = cid;
	}
	/**
	 * @return the nick
	 */
	public String getNick() {
		return nick;
	}
	/**
	 * @param nick the nick to set
	 */
	public void setNick(String nick) {
		this.nick = nick;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}
	/**
	 * @param desc the desc to set
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}
	/**
	 * @return the bulletin
	 */
	public String getBulletin() {
		return bulletin;
	}
	/**
	 * @param bulletin the bulletin to set
	 */
	public void setBulletin(String bulletin) {
		this.bulletin = bulletin;
	}
	/**
	 * @return the pic_path
	 */
	public String getPic_path() {
		return "http://logo.taobao.com/shop-logo" + pic_path;
	}
	/**
	 * @param pic_path the pic_path to set
	 */
	public void setPic_path(String pic_path) {
		this.pic_path = pic_path;
	}
	/**
	 * @return the created
	 */
	public String getCreated() {
		return created;
	}
	/**
	 * @param created the created to set
	 */
	public void setCreated(String created) {
		this.created = created;
	}
	/**
	 * @return the modified
	 */
	public String getModified() {
		return modified;
	}
	/**
	 * @param modified the modified to set
	 */
	public void setModified(String modified) {
		this.modified = modified;
	}

	/**
	 * @return the shop_score
	 */
	public ShopScore getShop_score() {
		return shop_score;
	}

	/**
	 * @param shop_score the shop_score to set
	 */
	public void setShop_score(ShopScore shop_score) {
		this.shop_score = shop_score;
	}
	
	/**
	 * 方法简介：获取店铺主页地址
	 * jack
	 * 2013-12-28
	 */
	public String getShopUrl(){
		return "shop" + this.sid + ".taobao.com";
	}
	
}
